<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!-- 通信平台的顶部 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>   
    <title>My JSP 'contactTop.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<style type="text/css">
  body 
  {
	background-color: #dceffd;
  }
</style>
<script type="text/javascript" src="/ag/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/ag/lwc/cti/testcti.js"></script>
<script type="text/javascript" src="/ag/lwc/cti/call.js"></script>
  </head> 
  <BODY onload="onInit() ">
  	<div id="container">
		<div id="header" align="center">
			<OBJECT ID="RTsapiBar" WIDTH=850 HEIGHT=32 codebase="RTsapiBar.cab#version=1,0,0,7" 
	        		CLASSID="CLSID:6663C5E2-E0D8-4EA9-8871-1E4A28F6F1FA">
				<br><PARAM NAME="_Version" VALUE="65536">
				<PARAM NAME="_ExtentX" VALUE="21167">
				<PARAM NAME="_ExtentY" VALUE="847">
				<PARAM NAME="_StockProps" VALUE="0">
				<PARAM NAME="ServIP" VALUE="172.17.7.177">
				<PARAM NAME="LocalDeviceType" VALUE="0">
				<PARAM NAME="Alive" VALUE="35">
				<PARAM NAME="Log" VALUE="1">
				<PARAM NAME="Confirm" VALUE="8">
			</OBJECT>
		</div>
		<!--
		<div id="body">
		 
			<table id="op_layout">
			<tr>
				<td>ServIP:</td>
				<td><input type="text" id="op_servip" value="192.168.0.158"></td>
				<td>��ϯid��AgentID:</td>
				<td><input type="text" id="op_agent"></td>
				<td>LocalDevice:</td>
				<td><input type="text" id="op_localdev"></td>
				<td>Queues:</td>
				<td><input type="text" id="op_queues"></td>
			</tr>
			<tr>
				<td><button id="btn_SetCTIServer">SetCTIServer</button></td>
				<td><button id="btn_SetLocalDevice">SetLocalDev</button></td>
				<td><button id="btn_SetAgent">SetAgent</button></td>
				<td><button id="btn_SetLoginID">SetLoginID</button></td>
				<td><button id="btn_SetQueue">SetQueue</button></td>
				<td><button id="btn_SetTransferMode">TransferMode</button></td>
				<td><button id="btn_SetConferenceMode">ConferenceMode</button></td>
				<td><button id="btn_SetVisual">SetVisual</button></td>
			</tr>				
			<tr>
				<td><button id="btn_CreateCTIEnv">CreateCTIEnv</button></td>
				<td><button id="btn_CloseCTIEnv">CloseCTIEnv</button></td>
				<td><button id="btn_Login">Login</button></td>
				<td><button id="btn_Logout">Logout</button></td>
				<td><button id="btn_Ready">Ready</button></td>
				<td><button id="btn_NotReady">NotReady</button></td>
				<td><button id="btn_MakeCall">MakeCall</button></td>
				<td><button id="btn_Answer">Answer</button></td>
			</tr>
		<tr>
			<td>外呼:  <input type="text" id="dev"/><input type="button" id="makeCall"/></td>
		</tr>
			</table>
		</div>
		-->

		
	<div id="footer1" style="float:left">
			<TEXTAREA id="msgs" rows="12" cols="80"></TEXTAREA>
	</div>
		 
	</div>
	<div>
	ServIPip：&nbsp;	<input type="text" value="${servIP}"    id="ServIP"><br/>
	AgentID：  &nbsp;<input type="text" value="${agentId}"   id="AgentID"><br/>
	队列：	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" value="${queue}" 	id="queue"><br/>
	分机号码:&nbsp;&nbsp;&nbsp;<input type="text" value="${deviceId}"  id="deviceId"><br/>
	登录密码;&nbsp;&nbsp;&nbsp;<input type="text" value="${password}"  id="password"><br/>
	<input type="button" value="测试保存通话日志" id="savelog">
	</div>



</BODY>
	<script type="text/javascript">
		$(function()
		{
				//打开我的通信录	
			$("#myContactLink").click(function(){
				window.open("/ag/lwc/findAllContact_UserContactAction.action","newwindow",'height='+screen.height+',width='+screen.width+',top=10,left=0,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no, status=no')
		
				});
				
			//测试保存通话日志
			$("#savelog").click(function(){
				caller = "8004";
				filename="123.cmp";
				called = new Array();
				called[called.length]="36031377";
				called[called.length]="13533123734";
				startTime = new Date();
				AgentWorkReady("","","","","")
			
			});
		});
	</script>

</html>
